package com.itheima.dao.Impl;

import com.itheima.dao.BookDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;


@Repository("bookDao")
public class BookDaoImpl implements BookDao {

    @Value("${name}")        //可能来自于properties文件
    private String name;

    public void save() {
        System.out.println("book dao save..." + name);
    }
}
